Repository navigation
Say in the app's log when a local mode overrides the dashboard's - #522
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
🎯 Elite quality (96%) — Small, well-scoped change that surfaces a silent env-over-dashboard mode override with deduplicated logging and tests. 📦 Small 🤖 Written by Claude Code — going by its own attribution. Unknown whether a person read it; agents can report that with the 🟢 Low risk — 18 lines of code, and nothing that needs a person. 🔎 AI review passed — Coderbuds triage found nothing that should stop this merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PATCHSTACK_MODEin the app's environment wins over the mode chosen in the Patchstack dashboard. That is documented, but nothing said so when it happened: switching the dashboard from monitoring to protection looked like it worked while the app kept observing.What changed
When
PATCHSTACK_MODEis set and differs from the mode the platform delivers, the guard writes one line to the app's log:It is written once per pairing, again if the dashboard's mode later changes, and not during a Next.js production build. The precedence itself is unchanged.
Not in this change
The dashboard still does not show the override. That needs the guard to tell the platform which mode it is running in, which is a change to what the package sends and has to be disclosed in the docs first.
Checked
tests/protect/local-mode-override-is-said.test.ts.npm testpasses excepttests/field-test-cli-log.test.ts(a temp-path difference on my machine).capabilities:checkpasses.🤖 Generated with Claude Code